<!doctype html>
<html>
    <head>
        <title>{{ the_title }}</title>
        <link rel="stylesheet" type="text/css" href="/static/weatherapp.css" />
        <style>
            body {
                text-align: center;
  margin-top:       5.2%;
  margin-bottom:    6%;
  margin-left:      19%;
  margin-right:     19%;
  background-image: linear-gradient(to right, #8fd3ed, #83ceea, #77c8e7, #6bc3e5, #5dbde2, #4cbee0, #37bede, #17bfda, #00c6d1, #02ccc5, #36d1b5, #59d5a2);
  background-image: linear-gradient(to right, {{ the_color1 }}, {{ the_color2 }});
  border: 8px dotted white;
  width: 900px;
  height: 550px;
}
    p{ font-family:"幼圆",Times,serif;
       font-size: 17px;
        color: #fafcff;
        margin-top:       3%;
        margin-bottom:    3%;
        margin-left:      5%;
        margin-right:     5%;
  }
    h3{color: #fafcff;}
    h2{ margin-top:       4%;
        color: #fafcff;
        font-family: 华文琥珀;
    }

    table{background-color: #fafcff;
        color: #33495f;
        font-family: 幼圆,Times,serif;
        font-weight: bolder;
        opacity:0.9;
        border: 8px double #59d5a2;
        margin: auto;
        text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: table;
  @media screen and (max-width: 580px)
    display: block;
    }
    th {
	background: #59d5a2;
    opacity: 0.7;
	color: white;
	font-weight: bold;
    text-align: center;
    padding: 10px;
	border: 1px solid #ccc;
	font-size: 16px;
	}
   td{
	padding: 10px;
	border: 4px dotted #8fd3ed;
	text-align: left;
	font-size: 16px;
	}
   input[type=text] {color:#fafcff;
}
input[type=submit] {color: #fafcff;
}
.button {
                 float:left;
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px 22px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-top:       1%;
    margin-bottom:    1%;
    margin-left:      2.8%;
    margin-right:     2.5%;
    border-radius: 12px;
    cursor: pointer;}
            .button:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);}
            .icon {
  position: relative;
  display: inline-block;
  width: 12em;
  height: 10em;
  font-size: 1em; /* control icon size here */
}
html { box-sizing: border-box; }
html *,
html *:before,
html *:after { box-sizing: inherit; }

body {background-color: currentColor;}
.icon {
  position: relative;
  display: inline-block;
  width: 12em;
  height: 10em;
  font-size: 1em; /* control icon size here */
}

.cloudhh {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 3.6875em;
  height: 3.6875em;
  margin: -1.84375em;
  background: currentColor;
  border-radius: 50%;
  box-shadow:
    -2.1875em 0.6875em 0 -0.6875em,
    2.0625em 0.9375em 0 -0.9375em,
    0 0 0 0.375em #fff,
    -2.1875em 0.6875em 0 -0.3125em #fff,
    2.0625em 0.9375em 0 -0.5625em #fff;
}
.cloudhh:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -0.5em;
  display: block;
  width: 4.5625em;
  height: 1em;
  background: currentColor;
  box-shadow: 0 0.4375em 0 -0.0625em #fff;
}
.cloudhh:nth-child(2) {
  z-index: 0;
  background: #fff;
  box-shadow:
    -2.1875em 0.6875em 0 -0.6875em #fff,
    2.0625em 0.9375em 0 -0.9375em #fff,
    0 0 0 0.375em #fff,
    -2.1875em 0.6875em 0 -0.3125em #fff,
    2.0625em 0.9375em 0 -0.5625em #fff;
  opacity: 0.3;
  transform: scale(0.5) translate(6em, -3em);
  animation: cloud 4s linear infinite;
}
.cloudhh:nth-child(2):after { background: #fff; }

@keyframes cloud {
  0% { opacity: 0; }
  50% { opacity: 0.3; }
  100% {
    opacity: 0;
    transform: scale(0.5) translate(-200%, -3em);
  }
}

        </style>
    </head>
    <body>

    <script language=javascript>
    function weather(){
        document.search.action="http://127.0.0.1:5000/weathersearch";
        document.search.submit();
    }
    function temperature() {
        document.search.action = "http://127.0.0.1:5000/temperature";
        document.search.submit();
    }
    function winddirection() {
        document.search.action = "http://127.0.0.1:5000/winddirection";
        document.search.submit();
    }
    function windpower() {
        document.search.action = "http://127.0.0.1:5000/windpower";
        document.search.submit();
    }
    function humidity() {
        document.search.action = "http://127.0.0.1:5000/humidity";
        document.search.submit();
    }
    function quanbu() {
        document.search.action = "http://127.0.0.1:5000/quanbu";
        document.search.submit();
    }
    </script>

        {% block body %}

        {% endblock %}
    </body>
</html>
